package com.zhangfei.plus.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
class EchoController {
    @RequestMapping("/log")
    public String log() {
        //业务逻辑
        try {
            log.info(" start do something");
//            double a = 1 / 0;
        } catch (Exception e) {
            log.error("执行代码异常", e);
        }


        return "success";
    }


}